package io.bytes;

import java.io.PrintStream;

/**
 * 打印流的演示
 * @author dev
 */
public class PrintStreamDemo {
    public static void main(String[] args) {
        // 以一个输出流构造一个打印流
        PrintStream out = new PrintStream(System.out);
        out.println("世界 你好");
        char c = '\u0000';
        out.println((short) c);
        short val = (short) '\u7fff';
        out.println(val);
        out.format("0x%x", val);
        out.println();
        out.println((short) '\u8000');
        out.println((short) '\u3e9a');
        out.println((short) '\u7be0');
        out.println(Math.ceil(6.71));
    }
}
